import './utils/flexible'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './css/main.less'
import Btn from './components/Button'
import Footer from './components/Footer'
import Back from './components/Back'
import axios from './utils/axios'
import Layer from './utils/layer'
import Select from './utils/select'
import Vant from 'vant'
import 'vant/lib/index.css'

Vue.config.productionTip = false

Vue.component('Btn',Btn) //全局注册组件
Vue.component('Foot',Footer)
Vue.component('Back',Back)

Vue.use(Layer) // 引用插件
Vue.use(Select)
Vue.use(Vant)

window.axios = axios

Vue.prototype.$src="http://120.76.0.161/web/page/images/"
Vue.prototype.$trim=(a)=>{
  return(a||"").replace(/^\s*(.*?)\s*$/,"$1")
}

console.log(process.env.VUE_APP_MODE)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
